import request from '@/utils/request'

// 查询档次/级别
export function querySalPostGradeLevelPage(query) {
  return request({
    url: '/salPostGradeLevelController/querySalPostGradeLevelPage',
    method: 'get',
    params: query
  })
}

// 根据code查询数据
export function queryDataByCode(query) {
  return request({
    url: '/salPostGradeLevelController/queryDataByCode',
    method: 'get',
    params: query
  })
}

// 保存档次/级别
export function saveSalPostGradeLevel(data) {
  return request({
    url: '/salPostGradeLevelController/saveSalPostGradeLevel',
    method: 'post',
    data
  })
}

// 更新档次/级别
export function updateSalPostGradeLevel(data) {
  return request({
    url: '/salPostGradeLevelController/updateSalPostGradeLevel',
    method: 'post',
    data
  })
}
